package com.pioneer.web.book.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pioneer.web.book.domain.Book;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @author aom-star@outlook.com
* @description 针对表【book】的数据库操作Service
* @createDate 2025-05-18 10:19:53
*/
public interface IBookService extends IService<Book> {

    boolean updateBook(Book book);

    @Transactional(rollbackFor = Exception.class)
    boolean deleteBook(List<Long> bookIds);

    boolean addBook(Book book);

    @Transactional(rollbackFor = Exception.class)
    boolean borrowBook(List<Long> bookIds);
}
